#ifndef GLOBAL_H
#define GLOBAL_H

#include <QString>
#include <QStringList>
#include <QDebug>
#include <QDateTime>
#include <QList>
#include <QFile>
#include <QFileInfo>
#include <QDir>
#include <QString>
#include "../http/http_client.h"
#include <QSettings>
#include <QApplication>
#include "rplycenter_dlg.h"
#include "srvcfg_dlg.h"

#define HTTP_URLPREFIX "/HISOMEAPI"

typedef  struct {
    int       cvrPort;
    QString   cvrIP;
    QString   cvrUser;
    QString   cvrPwd;
    bool      cvrHttps;

    int       platFormPort;
    QString   platFormIP;
    QString   platFormUser;
    QString   platFormPwd;
}srvPara;



class HTTPCliet;
class rplyCenter_Dlg;
class srvCfg_Dlg;

extern HTTPCliet                       g_httpClient;
extern rplyCenter_Dlg*                 g_rplyCenterDlg;
extern srvCfg_Dlg*                     g_sysCfgDlg;

extern const QString                   g_iniPath ;
extern srvPara                         g_srvPara;

bool isFileExist(QString fullFilePath);
void readInitSettings();
void changeSkin();
void appExit();

#endif // GLOBAL_H
